const path = require("path");
const vueConfig = {
  // 基本路径
  publicPath: "/",
  productionSourceMap: false,
  pluginOptions: {
    "style-resources-loader": {
      preProcessor: "less",
      patterns: [path.resolve(__dirname, "./src/styles/theme.less")], // 引入全局样式变量
    },
  },
  pwa: {
    iconPaths: {
      favicon32: "./public/img/favicon.ico",
      favicon16: "./public/img/favicon.ico",
      appleTouchTcom: "./public/img/favicon.ico",
      maskIcon: "./public/img/favicon.ico",
      msTileImage: "./public/img/favicon.ico",
    },
  },
  configureWebpack: {
    externals: {
      vue: "Vue",
      vuex: "Vuex",
      "vue-router": "VueRouter",
      moment: "moment",
      axios: "axios",
      // 'store': 'store',
      "ant-design-vue": "antd",
    },
  },
};

module.exports = vueConfig;
